package atmGUI;

import java.io.Serializable;

public class User implements Serializable {
    private static final long serialVersionUID = -829869490634664093L;
    private String account;//账号
    private String password;//密码
    private double balance;//余额
    private int id;//id
    public User() {
    }

    public User(String account, String password, double balance) {
        this.account = account;
        this.password = password;
        this.balance = balance;
    }

    @Override
    public String toString() {
        return "User{" +
                "account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", balance=" + balance +
                ", id=" + id +
                '}';
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public void setId(int id) {
        this.id = id;
    }
}
